package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Comment;
import cn.wolfcode.trip.base.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CommentMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Comment record);

    Comment selectByPrimaryKey(Long id);

    List<Comment> selectAll(QueryObject qo);

    int updateByPrimaryKey(Comment record);

    void updateImgRelation(@Param("commentId") Long commentId, @Param("imgId") Long imgId);

    void updateLabelRelation(@Param("commentId") Long commentId, @Param("labelId") Long labelId);

    void updateStratagyRelation(@Param("commentId") Long commentId, @Param("stratagyId") Long stratagyId);
}